def numbers()
	puts "Enter the first number:"
	first_num = gets.chomp
	puts "Enter the second number:"
	second_num = gets.chomp

	operation = rand(1..4)
	if operation == 1
		answer = first_num.to_i + second_num.to_i
		operation = "Addition"
	elsif operation == 2
		answer = first_num.to_i - second_num.to_i
		operation = "Subtraction"
	elsif operation == 3
		answer = first_num.to_i * second_num.to_i
		operation = "Multiplication"
	elsif operation == 4
		answer = first_num.to_i / second_num.to_i
		operation = "Division"
	end

	puts "The answer is #{answer}"
	puts "\t Operation used is #{operation}"
end

x = numbers()
		
		